import React from 'react';

import type { IBlankMod } from './data.d';
import ExceptionMod from './exception';

const ForbidMod = (props: IBlankMod) => {
  const defaultProps = {
    children: '无访问权限',
    noborder: true,
    horizontal: false,
    imgSrc: 'https://img.alicdn.com/tfs/TB1nJ8xB7Y2gK0jSZFgXXc5OFXa-367-189.svg',
    showImg: true,
    showBtn: false,
    btnText: '刷新一下',
    height: '240px',
    onClick: () => {},
  };
  const newProps = { ...defaultProps, ...props };
  return <ExceptionMod {...newProps} />;
};

export default ForbidMod;
